// Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "shell/browser/native_window_views.h"

#include "chrome/app/chrome_command_ids.h"
#include "ohos/adapter/window/app_window_adapter.h"

namespace electron {

using ohos::adapter::window::AppWindowAdapter;

void NativeWindowViews::SetWindowButtonVisibility(bool visible) {
  window_button_visibility_ = visible;
  AppWindowAdapter::GetInstance().SetWindowButtonVisibility(
      GetAcceleratedWidget(), visible);
}

bool NativeWindowViews::GetWindowButtonVisibility() const {
  return AppWindowAdapter::GetInstance().GetWindowButtonVisibility(
      GetAcceleratedWidget());
}

int NativeWindowViews::GetWindowId() const {
  return AppWindowAdapter::GetInstance().GetWindowId(GetAcceleratedWidget());
}

bool NativeWindowViews::ExecuteWindowsCommand(int command_id) {
  return false;
}

}  // namespace electron
